@include('blog.layouts.header')
@include('blog.layouts.editor')
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
          <!--<h1 class="page-header">Dashboard</h1>-->

          <h2 class="sub-header">文章编辑</h2>
          <div class="table-responsive">
            <form role="form" method="post" action="{{url('blog/update')}}">
              {{ csrf_field() }}
              <div class="form-group">
                <label for="title">标题</label>
                <input type="text" class="form-control" id="title" placeholder="请输入名称" name="title" value="{{ $article_info->title }}">
              </div>
              <div class="form-group">
                <label for="author">作者</label>
                <input type="text" class="form-control" id="author" placeholder="请输入作者" name="author" value="{{ $article_info->author }}">
              </div>
              <div class="form-group">
                <label for="content">内容</label>
                <textarea id="editor_id" name="content" class="form-control" rows="20">{{ $article_info->content }}</textarea>
              </div>
              <input type="hidden" name="article_id" value="{{ $article_info->article_id }}">
              <button type="submit" class="btn btn-default">提交</button>
            </form>
          </div>
        </div>
@include('blog.layouts.footer')